﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;

namespace Hypergraph
{
    public class ColoredPointList : List<ColoredPoint>
    {
        /// <summary>
        /// Use convertion operator ToArray
        /// </summary>
        /// <returns></returns>
        public PointF[] GetPoints()
        {
            return (from p in this select p.MyPoint).ToArray<PointF>();
        }

        public ColoredPointList Clone()
        {
            ColoredPointList list = new ColoredPointList();
            list.AddRange(from o in this select o.Clone());
            return list;
        }
    }
}
